<h2>infoContent List</h2>

<div class="actionBar">
[<?php echo CHtml::link('New infoContent',array('create')); ?>]
[<?php echo CHtml::link('Manage infoContent',array('admin')); ?>]
</div>

<?php $this->widget('application.components.SearchBar');?>
<?php $this->widget('application.components.BreadCrumb', array(
  'crumbs' => array(
    array('name' => '有货首页', 'url' => array('pageMain')),
    array('name' => '潮流资讯'),
  ),
  'delimiter' => ' &gt;&gt; ', // if you want to change it
)); ?>

<div id="p_main" class="p_info p_border3">
	<div class="p_ileft">
        
        <?php echo $this->renderPartial('_monthList', array(
			'classes'=>$classes,
		)); ?>
        <?php echo $this->renderPartial('_hots', array(
				'hots'=>$hots,
		)); ?>
    </div>
    <div class="p_iright">
        <h4>潮流资讯</h4>	
            <div class="p_icontent">
                <div class="p_icleft">
	            <?php foreach($models as $n=>$model): ?>
	                <?php if ($n==3):?>
	                </div><div class="p_icright">
	                <?php endif?>
	                <div class="p_ipart">
		                <a href="index.php?r=infoContent/show&id=<?php echo CHtml::encode($model->id); ?>" title="<?php echo CHtml::encode($model->title); ?>">
		                    <img src="<?php echo CHtml::encode($model->display_pic_path); ?>" 
		                         border="0"  
		                         alt="<?php echo CHtml::encode($model->title); ?>"/>
		                </a>
			            <h5>
			                <a href="index.php?r=infoContent/show&id=<?php echo CHtml::encode($model->id); ?>" title="<?php echo CHtml::encode($model->title); ?>"><?php echo CHtml::encode($model->title); ?></a>
			                <span><?php echo CHtml::encode(date('Y-n-j G:i:s',$model->create_time)); ?></span>
			            </h5>
			            <p><?php echo CHtml::encode($model->brief); ?></p>
	                </div>
	            <?php endforeach?>
	            </div>
	            
	            <div class="clear"></div>
            </div>
            <div class="p_pager p_totop">
            <?php $this->widget('CLinkPager',array('pages'=>$pages)); ?>
            <p class="p_backtotop"><a href="#">返回顶部</a></p>
                <div class="clear"></div>
            </div>
        </div>
        <div class="p_ibotline"></div>
</div>
